﻿using System;
using System.Collections.Generic;

class AlphabetArray
{
    static void Main()
    {
        char[] AlphabetArray = {'a','b','c','d','e','f','g','h','i','j',
                               'k','l','m','n','o','p','q','r','s','t',
                               'u','v','w','x','y','z'};
        Console.WriteLine("Enter a word:");
        string wordEntered = Console.ReadLine();
        foreach (char ch in wordEntered)
        {
            for (int i = 0; i < AlphabetArray.Length; i++)
            {
                if (ch == AlphabetArray[i])
                {
                    Console.WriteLine("The letter {0} is on index {1}", ch, i);
                }
            }
        }
    }
}

